package com.geralt.im.servercommand.impl;

import com.geralt.im.server.IMServerClient;
import com.geralt.im.servercommand.ServerCommand;

public class StopServerCommand extends ServerCommand{

	@Override
	public String excute() {
		synchronized (IMServerClient.server) {
			if(IMServerClient.server.isRun()){
				IMServerClient.server.stop();
				return "Server is stop";
			}
			else return null;
		}
	}


}
